FROM node:16
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install -g @nestjs/cli
COPY . .
RUN npm run build
EXPOSE 8080
CMD ["node", "dist/main"]